<center>
    

    <div id="playlist">

        <h1><span></span><?php echo $this->translate("Your playlist is loading") ?></h1>
    <img src="<?php echo $this->baseUrl() ?>/images/loading.gif" alt="Loading" />

</div>
</center>

<script type="text/javascript">
    // jQuery call



$('#playlist').load('<?php echo $this->url(array('controller' => 'playlist', 'action' => 'party-playlist-generator')) ?>', function(response, status, xhr) {
  if (status == "error") {
    var msg = "Sorry, unable to load playlist: ";
    var img = "<br /><br /><img src=http://www.naros.cz/UserFiles/Image/error.png />";

    if (xhr.status == 503)
    {
        alert("Grooveshark.com or last.fm is offline, please try again later");
    }

    $("#playlist").html(msg + xhr.status + " " + xhr.statusText + img);
  }
});





</script>